package org.example;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {

        ApplicationContext ac=new ClassPathXmlApplicationContext("applicationContext.xml");
        UserController controller=(UserController) ac.getBean("userController");
        User user=(User) ac.getBean("user");
        controller.save(user);

        System.out.println("登出 查询le");
        System.out.println("查询用户");
        System.out.println("登出1u");

    }
}